package com.bert.base.entity.sys;

import javax.persistence.Column;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;



/**
 * 系统用户
 * @author: Bert
 * @date: 2018-04-15 23:21:11
 * @version: v1.0.0
 */
@Table(name = "sys_user")
public class SysUserEntity implements Serializable {


    private static final long serialVersionUID = -3323041445775867322L;
    /**
	 *  
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "JDBC")
	private Long userId;


			/**
         * 	用户名
         */
		@Column(name = "Username")
        private String username;
			/**
         * 	密码
         */
		@Column(name = "Password")
        private String password;
			/**
         * 	盐
         */
		@Column(name = "Salt")
        private String salt;
			/**
         * 	邮箱
         */
		@Column(name = "Email")
        private String email;
			/**
         * 	手机号
         */
		@Column(name = "Mobile")
        private String mobile;
			/**
         * 	状态  0：禁用   1：正常
         */
		@Column(name = "Status")
        private Integer status;
			/**
         * 	逻辑删除 ，1 表示删除，0 表示未删除。
         */
		@Column(name = "IsDeleted")
        private Integer isDeleted;
			/**
         * 	创建人ID
         */
		@Column(name = "CreateBy")
        private Long createBy;
			/**
         * 	创建时间
         */
		@Column(name = "CreateTime")
        private Date createTime;
			/**
         * 	修改人
         */
		@Column(name = "UpdateBy")
        private Long updateBy;
			/**
         * 	修改时间
         */
		@Column(name = "UpdateTime")
        private Date updateTime;
	

	
        public void setUserId(Long userId) {
            this.userId = userId;
        }

        public Long getUserId() {
            return userId;
        }
	
        public void setUsername(String username) {
            this.username = username;
        }

        public String getUsername() {
            return username;
        }
	
        public void setPassword(String password) {
            this.password = password;
        }

        public String getPassword() {
            return password;
        }
	
        public void setSalt(String salt) {
            this.salt = salt;
        }

        public String getSalt() {
            return salt;
        }
	
        public void setEmail(String email) {
            this.email = email;
        }

        public String getEmail() {
            return email;
        }
	
        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getMobile() {
            return mobile;
        }
	
        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getStatus() {
            return status;
        }
	
        public void setIsDeleted(Integer isDeleted) {
            this.isDeleted = isDeleted;
        }

        public Integer getIsDeleted() {
            return isDeleted;
        }
	
        public void setCreateBy(Long createBy) {
            this.createBy = createBy;
        }

        public Long getCreateBy() {
            return createBy;
        }
	
        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public Date getCreateTime() {
            return createTime;
        }
	
        public void setUpdateBy(Long updateBy) {
            this.updateBy = updateBy;
        }

        public Long getUpdateBy() {
            return updateBy;
        }
	
        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
        }

        public Date getUpdateTime() {
            return updateTime;
        }
	

	@Override
	public String toString() {
		return "SysUserEntity{" +
				",userId=" + userId +
				",username=" + username +
				",password=" + password +
				",salt=" + salt +
				",email=" + email +
				",mobile=" + mobile +
				",status=" + status +
				",isDeleted=" + isDeleted +
				",createBy=" + createBy +
				",createTime=" + createTime +
				",updateBy=" + updateBy +
				",updateTime=" + updateTime +
				'}';
	}
}
